package pokerantani.v2.linematchers;

import java.util.List;
import java.util.regex.Pattern;

import pokerantani.v2.LineMatcher;
import pokerantani.v2.RE;
import pokerantani.v2.model.Card;


public class BoardSummary extends LineMatcher {
	static final Pattern pBoard = Pattern.compile("Board \\[(" + RE.CARD + ") (" + RE.CARD + ") (" + RE.CARD + ") (" + RE.CARD + ") (" + RE.CARD + ")\\]");
	
	public List<Card> cards;
	
	public boolean match(String line) {
		if(match(line, pBoard)) {
			cards = groupCards(1, 2, 3, 4, 5);
			return true;
		}
		return false;
	}
}
